/* 聊天页面容器 */
.chat-container {
  display: flex;
  flex-direction: column;
  height: 100vh;
  background: #f7f8fa;
}

/* 顶部栏 */
.chat-header {
  display: flex;
  align-items: center;
  height: 104rpx;
  background: #fff;
  border-bottom: 1px solid #f0f0f0;
  padding: 0 32rpx;
}
.chat-avatar {
  width: 64rpx;
  height: 64rpx;
  border-radius: 50%;
  margin-right: 20rpx;
}
.chat-title {
  font-size: 32rpx;
  color: #222;
  font-weight: 500;
}

/* 消息列表 */
.chat-messages {
  flex: 1;
  overflow-y: scroll;
  padding: 32rpx 0 32rpx 0;
  background: #f7f8fa;
}

.chat-message-row {
  display: flex;
  align-items: flex-end;
  margin-bottom: 24rpx;
  padding: 0 32rpx;
}
.chat-message-merchant {
  flex-direction: row;
  justify-content: flex-start;
}
.chat-message-user {
  flex-direction: row-reverse;
  justify-content: flex-end;
}

.chat-bubble-avatar {
  width: 48rpx;
  height: 48rpx;
  border-radius: 50%;
  background: #eee;
  margin: 0 16rpx;
}
.chat-bubble-avatar-user {
  background: #b3e5fc;
}

.chat-bubble {
  max-width: 60vw;
  padding: 18rpx 28rpx;
  border-radius: 24rpx;
  font-size: 28rpx;
  line-height: 1.5;
  word-break: break-all;
  background: #fff;
  color: #222;
  box-shadow: 0 2rpx 8rpx rgba(0,0,0,0.04);
}
.chat-bubble.user {
  background: #4fc3f7;
  color: #fff;
}

/* 输入栏 */
.chat-input-bar {
  display: flex;
  align-items: center;
  padding: 16rpx 24rpx 24rpx 24rpx;
  background: #fff;
  border-top: 1px solid #f0f0f0;
}
.chat-input {
  flex: 1;
  height: 64rpx;
  border-radius: 32rpx;
  background: #f5f5f5;
  border: none;
  padding: 0 24rpx;
  font-size: 28rpx;
  margin-right: 16rpx;
}
.chat-send-btn {
  min-width: 96rpx;
  height: 64rpx;
  border-radius: 32rpx;
  background: #4fc3f7;
  color: #fff;
  font-size: 28rpx;
  display: flex;
  align-items: center;
  justify-content: center;
  border: none;
} 